// 手机号码和固定电话验证
function validatePhoneOrNum(value) {
  const regPhone2 =
    /^1\d{10}$|^(0\d{2,3}-?|\(0\d{2,3}\))?[1-9]\d{4,7}(-\d{1,8})?$/
  if (regPhone2.test(value)) {
    return true
  }
  return false
}

module.exports = {
  validatePhoneOrNum: validatePhoneOrNum
}